<extend name="Public/base" />

<block name="style" >
    <style>
        .upload_shop_img_item .create_access_primary{
            margin-left:0;
            margin-bottom: 0;
        }
        .upload_shop_img_item .upload_area{
            margin-bottom:0;
        }
        .fa{
            line-height: 4;
        }
    </style>
</block>

<block name="body">
    <!-- 弹窗插件 -->
    <include file="Public:artdialog" />
    <!-- 表单验证插件 -->
    <include file="Public:validform" />

    <form action="{:U('add_grant')}" method="post" role="form" class="form-horizontal row-border vform" >

        <input type="hidden" name="id" value="{$entity['id']}">
        <input type="hidden" name="is_add" value="{$is_add}">

        <div class="row">
            <div class="col-md-12">
                <div class="block-web">

                    <div class="porlets-content">

                        <div class="form-group" >
                            <label class="col-sm-3 control-label"><font class="red">*</font>状态</label>
                            <div class="col-sm-6">
                                <label class="radio-inline">
                                    <input type="radio" <if condition="$entity['status'] eq 1 or empty($entity)">checked</if>  name="status" value="1">
                                    <span class="custom-radio"></span> 可用
                                </label>
                                <label class="radio-inline">
                                    <input type="radio"  <if condition="$entity['status'] eq 0 and !empty($entity)">checked</if>  name="status" value="0" >
                                    <span class="custom-radio"></span> 禁用
                                </label>
                            </div>
                        </div>


                        <div class="form-group">
                            <label class="col-sm-3 control-label"><font class="red">*</font>预存货款区间</label>
                            <div class="col-sm-3">
                                <input type="number" value="{$entity['money_start']}" name="money_start"  class="form-control " datatype="*" nullmsg="请输入预存货款开始值" />
                                <div class="Validform_checktip"></div>
                            </div>
                            <label style="width: 30px;" class="col-sm-1 control-label">—</label>
                            <div class="col-sm-3">

                                <input type="number" value="{$entity['money_end']}" name="money_end"  class="form-control " datatype="*" nullmsg="请输入预存货款结束值" />
                                <div class="Validform_checktip"></div>
                            </div>
                        </div>


                        <div class="form-group">
                            <label class="col-sm-3 control-label"><font class="red">*</font>赠送金额</label>
                            <label style="width: 30px;" class="col-sm-1 control-label">每</label>
                            <div class="col-sm-2">
                                <input type="number" value="{$entity['every_money']}" name="every_money"  class="form-control " datatype="*" nullmsg="请输入每多少元赠送" />
                                <div class="Validform_checktip"></div>
                            </div>
                            <label style="width: 55px;" class="col-sm-1 control-label">赠送</label>
                            <div class="col-sm-2">
                                <input type="number" value="{$entity['send_money']}" name="send_money"  class="form-control " datatype="*" nullmsg="请输入每多少元赠送金额" />
                                <div class="Validform_checktip"></div>
                            </div>
                        </div>



                    </div><!--/porlets-content-->
                </div><!--/block-web-->
            </div>

        </div>

        <div class="footer">
            <button class="btn btn-primary btn-success bt_submit" type="submit">提交</button>
            <button class="btn btn-default bt_close " type="button" onclick="art.dialog.open.api.close();" >关闭</button>
        </div>

    </form>




</block>
<block name="script">
    <script>


    </script>

</block>
